package pro.reznick.geoalarm;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class AlarmDaoHelper extends SQLiteOpenHelper {

	private static final String DATABASE_NAME = "geo_alarm";
	private static final int DATABASE_VERSION = 1;
	private static final String CREATE_ALARM_TABLE = "CREATE TABLE alarm(id INTEGER PRIMARY KEY ASC, longitude REAL NOT NULL, latitude REAL NOT NULL, distanceInMeters INTEGER, name TEXT, text TEXT, is_on BOOLEAN NOT NULL)";



	
	public AlarmDaoHelper(Context context) {
         super(context, DATABASE_NAME, null, DATABASE_VERSION);
     }

	

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE_ALARM_TABLE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int fromVersion, int toVersion) {

	}
	

	
}


